package com.ynkbny.web.controller;

import com.ynkbny.base.PageResult;
import com.ynkbny.domain.mongo.NotUploadDataLog;
import com.ynkbny.domain.mongo.NotUploadDataLogVO;
import com.ynkbny.service.NotUploadDataLogService;
import com.ynkbny.util.Res;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author YY
 * @Date 2023/9/13 10:25
 **/
@Api(tags = "不上报数据日志")
@RestController
@RequestMapping("/notUploadDataLog")
public class NotUploadDataLogController {

    @Resource
    private NotUploadDataLogService service;

    @PostMapping("/pageQuery")
    @ApiOperation("根据条件分页 查询")
    public Res<PageResult<NotUploadDataLog>> pageQuery(NotUploadDataLogVO notUploadDataLogVO) {
        return Res.ok(service.pageQuery(notUploadDataLogVO));
    }

}
